/* #ifdef H5 */
page {
	min-height: 100%;
}
/* #endif */

.container {
	overflow: hidden;
	position: relative;
}

.loading {
	width: 100%;
	height: 1250rpx;
	display: flex;
	align-items: center;
	justify-content: center;

	image {
		width: 260rpx;
		height: 260rpx;
		position: relative;
		margin-top: -200rpx;
		/* #ifdef h5 */
		margin-top: 0;
		/* #endif */
	}
}

.stores {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	margin-bottom: -40rpx;
	.store {
		width: 100%;
		background-color: $bg-color-grey;
		padding: 20rpx;
		display: flex;
		align-items: center;
		margin-bottom: 20rpx;
		border-radius: 6rpx;

		.iconfont {
			font-size: 50rpx;
			margin-right: 15rpx;

			&.iconradio-button-off {
				color: $text-color-assist;
			}

			&.iconradio-button-on {
				color: $color-primary;
			}
		}

		.infos {
			flex: 1;
			display: flex;
			flex-direction: column;
			color: $text-color-base;
			overflow: hidden;

			.name_and_distance {
				width: 100%;
				display: flex;
				justify-content: space-between;
				margin-bottom: 10rpx;
				overflow: hidden;

				.name {
					flex: 1;
					flex-shrink: 0;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
					font-size: $font-size-lg;
				}

				.distance {
					flex-shrink: 0;
					font-size: $font-size-lg;
					font-weight: bold;
					margin-left: 20rpx;
				}
			}

			.street {
				color: $text-color-assist;
				font-size: $font-size-sm;
			}
		}
	}
}

.main {
	width: 100%;
	height: 100%;
	position: relative;
	display: flex;
	flex-direction: column;
}

.nav {
	width: 100%;
	// height: 212rpx;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	
	.header {
		width: 100%;
		display: flex;
		align-items: flex-start;
		justify-content: space-between;
		padding: 20rpx;
		box-sizing: border-box;
		background-color: #ffffff;
		// height: 140rpx;

		.left {
			flex: 1;
			display: flex;
			flex-direction: column;

			.store-name {
				display: flex;
				justify-content: flex-start;
				align-items: center;
				font-size: 32rpx;
				margin-bottom: 10rpx;

				.iconfont {
					margin-left: 10rpx;
					line-height: 100%;
				}
			}

			.store-location {
				display: flex;
				justify-content: flex-start;
				align-items: center;
				color: $text-color-assist;
				font-size: $font-size-sm;

				.iconfont {
					vertical-align: middle;
					display: table-cell;
					color: $color-primary;
					line-height: 100%;
				}
			}
		}

		.right {
			border-radius: 38rpx;
			display: flex;
			align-items: center;
			.dinein, .takeout {
				position: relative;
				display: flex;
				justify-content: center;
				align-items: center;
				width: 118rpx;
				height: 59rpx;
				font-size: 32rpx;
				font-weight: bold;
				color: #282828;
				border: 1rpx solid;
				@include border_color('border_color');
				box-sizing: border-box;
				&.active {
					color: #ffffff;
					@include background_color('background_color');
				}
			}
			
			.takeout {
				border-top-left-radius: 29rpx;
				border-bottom-left-radius: 29rpx;
				
				
			}
			.dinein{
				border-top-right-radius: 29rpx;
				border-bottom-right-radius: 29rpx;
			}
		}
	}
	.reduce_list{
		background-color: #FFFFFF;
		display: flex;
		flex-wrap: wrap;
		padding:0 20rpx;
		box-sizing: border-box;
		.reduce_item{
			padding: 2rpx 10rpx;
			border: 2rpx solid;
			@include border_color('border_color');
			@include font_color('font_color');
			font-size: 22rpx;
			border-radius: 5rpx;
			display: inline-block;
			margin-right: 12rpx;
			margin-bottom: 20rpx;
		}
	}
}

.content {
	flex: 1;
	overflow: hidden;
	width: 100%;
	display: flex;

	.menus {
		width: 200rpx;
		height: 100%;
		overflow: hidden;
		background-color: $bg-color-grey;
		
		.wrapper {
			width: 100%;
			height: 100%;
				
			.menu {
				display: flex;
				align-items: center;
				justify-content: flex-start;
				padding: 30rpx 20rpx;
				font-size: 26rpx;
				color: $text-color-assist;
				position: relative;
				
				&:nth-last-child(1) {
					margin-bottom: 130rpx;
				}
				
				&.current {
					background-color: #ffffff;
					color: $text-color-base;
					position: relative;
				}
				&.current::after{
					content: '';
					width: 5rpx;
					position: absolute;
					left: 0;
					height: 91rpx;
					@include background_color('background_color');
				}
			
			}
		}
	}

	.goods {
		flex: 1;
		height: 100%;
		overflow: hidden;
		background-color: #ffffff;

		.wrapper {
			width: 100%;
			height: 100%;
			padding: 20rpx;
			box-sizing: border-box;
			.ads {
				height: calc(300 / 550 * 510rpx);

				image {
					width: 100%;
					height: 100%;
					border-radius: 8rpx;
				}
			}

			.list {
				width: 100%;
				font-size: $font-size-base;
				padding-bottom: 330rpx;
				
				.category {
					width: 100%;

					.title {
						padding: 30rpx 0;
						display: flex;
						align-items: center;
						color: $text-color-base;

						.icon {
							width: 38rpx;
							height: 38rpx;
							margin-left: 10rpx;
						}
					}
				}

				.items {
					display: flex;
					flex-direction: column;
					padding-bottom: -30rpx;

					.good {
						display: flex;
						align-items: center;
						margin-bottom: 30rpx;

						.image {
							width: 160rpx;
							height: 160rpx;
							margin-right: 20rpx;
							border-radius: 8rpx;
						}

						.right {
							flex: 1;
							min-height: 160rpx;
							overflow: hidden;
							display: flex;
							flex-direction: column;
							align-items: flex-start;
							justify-content: space-between;
							padding-right: 14rpx;
							.discount{
								font-size: 20rpx;
								border-radius: 5rpx;
								padding: 2rpx 6rpx;
								border: 1rpx solid;
								@include border_color('border_color');
								@include font_color('font_color');
								margin-bottom: 10rpx;
							}
							.name {
								font-size: 30rpx;
								font-weight: 800;
								color: #3A3A3A;
								margin-bottom: 16rpx;
							}

							.tips {
								width: 100%;
								overflow: hidden;
								text-overflow: ellipsis;
								white-space: nowrap;
								font-size: 24rpx;
								color: #28282850;
							}

							.price_and_action {
								width: 100%;
								display: flex;
								justify-content: space-between;
								align-items: center;

								.price {
									font-size: 32rpx;
									font-weight: 600;
									color: #FF5800;
								}
								.linprice{
									font-size: 24rpx;
									font-weight: 300;
									color: #999999;
									text-decoration: line-through;
								}

								.btn-group {
									display: flex;
									justify-content: space-between;
									align-items: center;
									position: relative;

									.btn {
										padding: 0 20rpx;
										box-sizing: border-box;
										font-size: $font-size-sm;
										height: 40rpx;
										width: 40rpx;
										line-height: 40rpx;
										display: flex;
										justify-content:center;
										align-items: center;
										font-size: 20rpx;
										&.property_btn {
											width: 106rpx;
											height: 52rpx;
											border-radius: 10rpx;
											@include border_color('border_color');
											@include background_color('background_color');	
											@include text_color('text_color');	
											font-size: 26rpx;
											font-weight: bold;
											line-height: 52rpx;
											padding: 0;
										}
										&.add_btn{
											@include border_color('border_color');
											@include background_color('background_color');	
										}
										&.add_btn,
										&.reduce_btn {							
											border: $dominant-color 1rpx solid;
											@include border_color('border_color');
											color: #FFFFFF;
											padding: 0;
											width: 40rpx;
											border-radius: 50%;
											font-size: 20rpx;
										}
									}

									.dot {
										position: absolute;
										background-color: #ffffff;
										border: 1rpx solid;
										@include border_color('border_color');
										@include font_color('font_color');
										font-size: 20rpx;
										width: 26rpx;
										height: 26rpx;
										line-height: 26rpx;
										text-align: center;
										border-radius: 100%;
										right: -12rpx;
										top: -10rpx;
									}
									/* 列表 */
									.number {
										font-size: $font-size-base;
										width: 40rpx;
										height: 40rpx;
										text-align: center;
										line-height: 40rpx;
										font-size: 24rpx;
									}
								}
							}
						}
					}
				}
			}
		}
	}
}

.modal-box {
	max-height: 90vh;
}

.good-detail-modal {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;

	.cover {
		width: 100%;
		height: 580rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		position: relative;
		box-sizing: border-box;
		.image {
			width: 100%;
			height: 580rpx;
		}

		.btn-group {
			position: absolute;
			right: 10rpx;
			top: 30rpx;
			display: flex;
			align-items: center;
			justify-content: space-around;

			image {
				width: 80rpx;
				height: 80rpx;
			}
		}
	}
}

.cart-box {
	position: fixed;
	bottom: 0;
	width: 100%;
	height: 125rpx;
	box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.2);
	background-color: #FFFFFF;
	padding-bottom:env(safe-area-inset-bottom);
	display: flex;
	align-items: center;
	justify-content: space-between;
	z-index: 9999;
	
	.cart-img {
		width: 115rpx;
		height: 115rpx;
		position: relative;
		margin-top: -48rpx;
	}
	
	.pay-btn {
		width: 183rpx;
		height: 83rpx;
		color: #FFFFFF;
		border-radius: 29rpx;
		box-shadow: 7px 12px 13px 0px rgba(255, 204, 0, 0.09);
		display: flex;
		justify-content: center;
		align-items: center;
		font-size: 32rpx;
		@include text_color('text_color');
		@include background_color('background_color');
		margin-right: 25rpx;
	}
	button.btn-gray::disabled{
		background-color: #666666;
	}
	
	.mark {
		padding-left: 46rpx;
		margin-right: 30rpx;
		position: relative;
		
		.tag {
			background-color: #FF0000;
			color: #FFFFFF;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 28rpx;
			position: absolute;
			right: -10rpx;
			top: -50rpx;
			border-radius: 100%;
			padding: 4rpx;
			width: 38rpx;
			height: 38rpx;
			box-sizing: border-box;
			opacity: .9;
		}
	}
	
	.price {
		flex: 1;
		font-size: 36rpx;
		color: #FF3918;
		font-weight: 800;
	}
}

	.iconsami-select{
		font-size: 20rpx;
		@include font_color('font_color');
	}
	.iconadd-select{
		color: #FFFFFF;
		font-size: 20rpx;
	}
	.cart-list .iconadd-select{
		font-size: 20rpx;
		@include font_color('font_color');
	}
	.container{
		padding: 0;
	}
	.off_business {
		position: fixed;
		width: 550rpx;
		@include background_color('background_color');
		opacity: 0.8;
		color: #fff;
		line-height: 50rpx;
		text-align: center;
		z-index: 98;
	}

	.good_basic {
		padding: 0 26rpx;
		display: flex;
		flex-direction: column;

		.name {
			margin-top: 24rpx;
			font-size: 35rpx;
			color: #282828;
			font-weight: 800;
			margin-bottom: 10rpx;
		}
		.selling_point{
			width: 589rpx;
			font-size: 24rpx;
			font-weight: 500;
			color: #28282850;
			line-height: 30rpx;
			word-break: break-all;
		}
		.tips {
			font-size: $font-size-sm;
			color: $text-color-grey;
		}
	}
	
	.properties {
		width: 100%;
		padding: 10rpx 26rpx 0;
		display: flex;
		flex-direction: column;
	}

	.property {
		width: 100%;
		display: flex;
		flex-direction: column;
		.title {
			width: 100%;
			display: flex;
			justify-content: flex-start;
			align-items: center;
			margin-bottom: 20rpx;

			.name {
				font-size: 26rpx;
				color: $text-color-base;
				margin-right: 20rpx;
			}

			.desc {
				flex: 1;
				font-size: $font-size-sm;
				color: $color-primary;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		}

		.values {
			width: 100%;
			display: flex;
			flex-wrap: wrap;

			.value {
				border-radius: 10rpx;
				height: 52rpx;
				line-height: 52rpx;
				background-color: #FFFFFF;
				padding: 0 36rpx;
				font-size: 24rpx;
				color: #666666;
				margin-right: 18rpx;
				margin-bottom: 22rpx;
				border: 1rpx solid #DDDDDD;
				&.default {
					@include border_color('border_color');
					@include background_color('bg-op');
					@include font_color('font_color');
				}
			}
		}
	}

	.action {
		display: flex;
		align-items: center;
		justify-content: space-between;
		height: 126rpx;
		padding: 0 26rpx;
		.left {
			flex: 1;
			display: flex;
			flex-direction: column;
			justify-content: center;
			margin-right: 20rpx;
			overflow: hidden;

			.price {
				font-size: 36rpx;
				color:#FF3918;
			}

			.props {
				color: $text-color-assist;
				font-size: 24rpx;
				width: 100%;
				overflow: hidden;
				text-overflow: ellipsis;
				white-space: nowrap;
			}
		}

		.btn-group {
			display: flex;
			align-items: center;
			justify-content: space-around;

			.number {
				font-size:24rpx;
				width: 40rpx;
				height: 32rpx;
				line-height: 32rpx;
				text-align: center;
			}

			.btn {
				padding: 0;
				font-size: 22rpx;
				width: 32rpx;
				height: 32rpx;
				line-height: 32rpx;
				border-radius: 100%;
				display: flex;
				justify-content: center;
				align-items: center;
			}
		}
	}

	.add-to-cart-btn {
		width: 701rpx;
		height: 83rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		@include background_color('background_color');
		@include text_color('text_color');
		font-size: 32rpx;
		border-radius:42rpx;
		margin:0 auto;
		margin-bottom: 35rpx;
	}

	.cart-popup {
		.top {
			color: #28282880;
			padding: 28rpx 30rpx 10rpx 30rpx;
			font-size: 22rpx;
			text-align: right;
		}

		.cart-list {
			background-color: #FFFFFF;
			width: 100%;
			overflow: hidden;
			min-height: 1vh;
			max-height: 60vh;

			.wrapper {
				height: 100%;
				display: flex;
				flex-direction: column;
				padding: 0 30rpx;
				margin-bottom: 0;
				box-sizing: border-box;
				
				.item {
					display: flex;
					justify-content: space-between;
					align-items: center;
					padding: 30rpx 0;
					position: relative;

					&::after {
						content: ' ';
						position: absolute;
						bottom: 0;
						left: 0;
						width: 100%;
						background-color: #EEEEEE;
						height: 2rpx;
						transform: scaleY(.6);
					}
					.cart-image{
						width: 148rpx;
						height: 148rpx;
						border-radius: 8rpx;
						margin-right: 37rpx;
						image{
							width: 148rpx;
							height: 148rpx;
							border-radius: 8rpx;
						}
					}
					.left {
						flex: 1;
						display: flex;
						flex-direction: column;
						overflow: hidden;
						justify-content: space-between;
						margin-right: 30rpx;
						.name {
							font-size: 30rpx;
							color: #3A3A3A;
							margin-bottom: 16rpx;
						}

						.props {
							color: #28282850;
							font-size: 24rpx;
							overflow: hidden;
							text-overflow: ellipsis;
							white-space: nowrap;
						}
					}

					.center {
						font-size: 32rpx;
						color: #FF5800;
					}

					.right {
						display: flex;
						align-items: center;
						justify-content: space-between;
						.btn {
							width: 40rpx;
							height: 40rpx;
							border-radius: 50%;
							padding: 0;
							text-align: center;
							line-height: 40rpx;
							display: flex;
							justify-content: center;
							align-items: center;
							.iconadd-select{
								@include text_color('text_color');
							}
						}
						/* 购物车 */
						.number {
							font-size: $font-size-base;
							width: 40rpx;
							height: 40rpx;
							text-align: center;
							line-height: 40rpx;
							font-size: 24rpx;
						}
					}
				}
			}
		}
	}
	.spec-bottom{
		background-color: #FFFFFF;
		box-shadow: 0 0 20rpx rgba(0, 0, 0, 0.2);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.top-title{
		position: absolute;
		top: -60rpx;
		width: 100%;
		@include background_color('background_color');
		height: 60rpx;
		line-height: 60rpx;
		color: #282828;
		font-size: 24rpx;
		.mj{
			width: 100%;
			text-align: center;
			background: rgba($color: #ffffff, $alpha: 0.85);
		}
	}
.product-content {
	margin-top: 20rpx;
	background: #ffffff;
}
.group-hd{
	height: 73rpx;
}
.min-name{
	height: 73rpx;
	line-height: 73rpx;
}
.min-name::after{
	position: absolute;
	content: '';
	width: 38rpx;
	height: 5rpx;
	background: #FFCC00;
	left: 0;
	right: 0;
	margin: auto;
	bottom: 0;
}